﻿<UserControl x:Class="InseSoft.Views.Controls.VendedorEdit"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:InseSoft.Models.Entities" 
             mc:Ignorable="d" 
             d:DesignHeight="140" d:DesignWidth="400">
    <UserControl.Resources>
        <Style TargetType="Label">
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Height" Value="23" />
        </Style>
    </UserControl.Resources>
    <Border BorderBrush="LightGray" BorderThickness="1" CornerRadius="10">
        <Grid d:DataContext="{d:DesignInstance {x:Type local:Vendedor}}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90" />
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="85" />
                <ColumnDefinition Width="110" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="27" />
                <RowDefinition Height="27" />
                <RowDefinition Height="27" />
                <RowDefinition Height="27" />
                <RowDefinition Height="27" />
            </Grid.RowDefinitions>
            <Label Content="Código" Grid.Row="0"/>
            <Label Content="Nombre" Grid.Row="1" />
            <Label Content="Email" Grid.Row="2" />
            <Label Content="Teléfono" Grid.Row="3" />
            <Label Content="Beeper" Grid.Row="3" Grid.Column="3" />
            <Label Grid.Row="0" Grid.Column="1" FontWeight="Bold" Content="{Binding Path=FriendlyId}" />
            <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="4" Width="300" VerticalAlignment="Center" HorizontalAlignment="Left" MaxLength="50" Text="{Binding Path=Nombre, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"/>
            <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="4" Width="300" VerticalAlignment="Center" HorizontalAlignment="Left" MaxLength="50" Text="{Binding Path=Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBox Grid.Row="3" Grid.Column="1" Width="100" MaxLength="20" Text="{Binding Path=Telefono, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBox Grid.Row="3" Grid.Column="4" Width="100" MaxLength="10" Text="{Binding Path=Beeper, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
        </Grid>
    </Border>
</UserControl>
